<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
	<title>_同步仁清库存</title>
	<script type="text/javascript">
	
   $(function() {
	 	$("#btn_syn").attr("disabled",false);
  		$("#btn_syn").attr("class","btn btn-primary");
  		$("#btn_syn").val("开始同步");
   });
   
   function syn(){
      $("#btn_syn").attr("disabled",true);
      $("#btn_syn").attr("class","btn");
      $("#btn_syn").val("数据同步中...");
      $("#form1").submit();
   }

</script>
</head>

<body>

	<form id="form1" method="post" action="${ctx}/synStockForLKE/synStock"  enctype="multipart/form-data">
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="14"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >同步仁清库存</th>
		<tr>
		</thead>
		<tbody>
		    <tr >
				<td style="height: 50px;vertical-align: middle;">
				   <a class="btn"  href="${ctx}/synStockForLKE/updownExcel" >模板下载</a>
				</td>
			</tr>
			<tr >
				<td style="height: 50px;vertical-align: middle;"><input name="file" class="btn" type="file"></td>
			</tr>
			<tr >
				<td style="height: 50px;vertical-align: middle;">
				  <input type="button" class="btn btn-primary" id="btn_syn" onclick="syn();" value="开始同步"/>
				  <button type="reset" class="btn">重置</button>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
	
	
</body>
</html>
